| Fully Qualified Name: | CodeIgniter\HTTP\RequestInterface |
Expected behavior of an HTTP request
| Name | Description | Defined By |
|---|---|---|
| getIPAddress() | Gets the user's IP address. | RequestInterface |
| getMethod() | Get the request method. | RequestInterface |
| getServer() | Fetch an item from the $_SERVER array. | RequestInterface |
| isValidIP() | Validate an IP address | RequestInterface |
Gets the user's IP address.
Returns: string IP address
Get the request method.
| Parameter Name | Type | Description |
|---|---|---|
| $upper | bool | Whether |
Returns: string
Fetch an item from the $_SERVER array.
| Parameter Name | Type | Description |
|---|---|---|
| $index | string | Index |
| $filter | null | A |
Returns: mixed
Validate an IP address
| Parameter Name | Type | Description |
|---|---|---|
| $ip | string | IP |
| $which | string | IP |
Returns: bool